import {Pipe, PipeTransform, NgModule} from "@angular/core";
import {CommonModule} from "@angular/common";

@Pipe({name: 'keys'})
export class KeysPipe implements PipeTransform {
  transform(value, args: string[]): any {

    return Object.keys(value);
  }
}

@NgModule(
  {
    // all components, pipes and directive which are using this module
    declarations: [KeysPipe],
    imports: [CommonModule],
    exports: [KeysPipe]
  })
export class KeysPipeModule {

}


